package JXY02.Day03;

public class Text03Emp implements Comparable<Text03Emp>{
    private String e_name;
    private String e_age;
    private String e_gender;
    private String e_salary;
    private String e_hiredate;

    public Text03Emp(String e_name,String e_age,String e_gender,String e_salary,String e_hiredate){
        this.e_name = e_name;
        this.e_age = e_age;
        this.e_gender = e_gender;
        this.e_salary = e_salary;
        this.e_hiredate = e_hiredate;
    }

    @Override
    public String toString() {
            return "员工：" + this.getE_name()+","+ this.getE_age()+","+this.getE_gender()+","+this.getE_salary()+","+this.getE_hiredate();

    }

    public String getE_name() {
        return e_name ;
    }
    public void setE_name(String e_name) {
        this.e_name = e_name;
    }

    public String getE_age() {
        return e_age;
    }

    public void setE_age(String e_age) {
        this.e_age = e_age;
    }

    public String getE_gender() {
        return e_gender;
    }

    public void setE_gender(String e_gender) {
        this.e_gender = e_gender;
    }

    public String getE_salary() {
        return e_salary;
    }

    public void setE_salary(String e_salary) {
        this.e_salary = e_salary;
    }

    public String getE_hiredate() {
        return e_hiredate;
    }

    public void setE_hiredate(String e_hiredate) {
        this.e_hiredate = e_hiredate;
    }


    @Override
    public int compareTo(Text03Emp o) {
        return this.e_hiredate.compareTo(o.e_hiredate);
    }
}